package com.eqxiu.ieditor.api.controller;

import com.eqxiu.ieditor.commons.web.ResultData;

/**
 * 
 * @description java 8 default method
 * @author ranger
 * @date Jun 19, 2017
 */
public interface BaseApiController {
	default ResultData fail() {
		return new ResultData().setSuccess(false).setCode(500);
	}

	default ResultData success() {
		return new ResultData().setSuccess(true).setCode(200);
	}
}
